<%-- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> --%>
<!DOCTYPE html>
<html>
<head>
<%-- <base href="<%=basePath%>"> --%>
<meta charset="UTF-8">
<title>VoteDetails</title>
<!-- <link rel="stylesheet" type="text/css"
	href="bootstrap/css/bootstrap.css"> -->
</head>
<body>
<%@ include file="heading.jsp" %>
	<div class="container">
		<div class="row">
		
			<div class="col-sm-9">
				<div class="vote_heading">
					<h3>${result.vote.voteName }</h3>					
					<p>${result.vote.crTime }</p>
					<p><a href="vote/${result.vote.voteID}/result.do">showResult</a></p>
					<c:if test="${!empty errorMsg}">
					  <p style="color:red">${errorMsg}</p>
					</c:if>
				</div>
				<div class="vote_body">
					<c:choose>
						<c:when test="${!empty result.options}">
							<form action="vote/${result.vote.voteID }/doVote.do" method="POST">
								<ul class="list-group-item">
									<c:forEach items="${result.options}" var="option">
										<li class="list-group-item">
											<input type="checkbox" name="optionID" value="${option.optionID }"/>${option.optionName}
										</li>
									</c:forEach>
								</ul>
								<input type="submit" class="btn btn-default col-sm-5" value="submit"/>
								&nbsp;
								<input type="reset" class="btn btn-default col-sm-5" value="reset"/>
							</form>
						</c:when>
						<c:otherwise>
							<p>no option in this vote yet!</p>
						</c:otherwise>
					</c:choose>
				</div>
			</div>
			
			<div class="col-sm-3">
<%-- 				<div class="desc">
					<h3>${channels[1].channelName }</h3>
					<p>${channels[0].channelDesc }</p>
				</div>
				<div class="recomand">
					<c:choose>
						<c:when test="${!empty threadsInChannel1}">
							<ul class="list-group-item">
								<c:forEach items="${threadsInChannel1}"
									var="threads1">
									<li class="list-group-item">${threads1.threadsName }</li>
								</c:forEach>
							</ul>
						</c:when>
						<c:otherwise>
							<p>no threads in this channel yet!</p>
						</c:otherwise>
					</c:choose>
				</div> --%>
			</div>
				
			</div>
		</div>
<!-- 	<script type="text/javascript" src="bootstrap/js/jquery.min.js"></script>
	<script type="text/javascript" src="bootstrap/js/bootstrap.js"></script> -->
</body>
</html>
